Spherical Harmonic Transform with GPUs
نویسندگان
چکیده
We describe an algorithm for computing an inverse spherical harmonic transform suitable for graphic processing units (GPU). We use CUDA and base our implementation on a Fortran90 routine included in a publicly available parallel package, shat. We focus our attention on the two major sequential steps involved in the transforms computation, retaining the efficient parallel framework of the original code. We detail optimization techniques used to enhance the performance of the CUDA-based code and contrast them with those implemented in the Fortran90 version. We also present performance comparisons of a single CPU plus GPU unit with the shat code running on either a single or 4 processors. In particular we find that use of the latest generation of GPUs, such as NVIDIA GF100 (Fermi), can accelerate the spherical harmonic transforms by as much as 18 times with respect to shat executed on one core, and by as much as 5.5 with respect to shat on 4 cores, with the overall performance being limited by the Fast Fourier transforms. The work presented here has been performed in the context of the Cosmic Microwave Background simulations and analysis. However, we expect that the developed software will be of more general interest and applicability. Key-words: transformée inverse en harmoniques sphériques, NVIDIA CUDA, GPU, CUDA ∗ INRIA Saclay-Ile de France, Bat 490, Université Paris-Sud 11, France ([email protected]). † Laboratoire de Recherche en Informatique, Bat 490, Université Paris-Sud 11, France ([email protected] ). ‡ INRIA Saclay-Ile de France, Bat 490, Université Paris-Sud 11, France ([email protected]). § CNRS, Laboratoire Astroparticule et Cosmologie, Université Paris Diderot, France ([email protected] ). Transformée en harmoniques sphériques sur GPUs Résumé : Nous décrivons un algorithme de calcul d’une transformée inverse en harmoniques sphériques approprié pour des processeurs graphiques. Nous utilisons CUDA et la mise en oeuvre utilise une routine du logiciel shat écrit en Fortran90. Nous nous concentrons sur deux étapes séquentielles de ce calcul, tout en conservant le cadre parallèle efficace du code original. Le travail présenté ici a été réalisé dans le cadre de la simulation et de l’analyse du fond difus cosmologique. Cependant, nous estimons que les techniques préséntées dans ce papier sont d’un intérêt et d’une applicabilité plus générale. Mots-clés : keywords in french Spherical harmonic transform with GPUs 3
منابع مشابه
Fast, exact (but unstable) spin spherical harmonic transforms
We derive algorithms to perform a spin spherical harmonic transform and inverse for functions of arbitrary spin number. These algorithms involve recasting the spin transform on the two-sphere S as a Fourier transform on the two-torus T. Fast Fourier transforms are then used to compute Fourier coefficients, which are related to spherical harmonic coefficients through a linear transform. By recas...
متن کاملFast Spherical Harmonic Transform Algorithm based on Generalized Fast Multipole Method
Spherical harmonic transform is the most important orthogonal function transform only except Fourier transform, and is used not only for climate simulation and signal processing but also for a base of several numerical algorithms. Fast Fourier Transform (FFT), which runs in time O(N logN) is quite well known, but, for spherical harmonic transform, there is no fast algorithm which is as simple a...
متن کاملParallel Spherical Harmonic Transforms on heterogeneous architectures (GPUs/multi-core CPUs)
Spherical Harmonic Transforms (SHT) are at the heart of many scientific and practical applications ranging from climate modelling to cosmological observations. In many of these areas new, cutting-edge science goals have been recently proposed requiring simulations and analyses of experimental or observational data at very high resolutions and of unprecedented volumes. Both these aspects pose fo...
متن کاملFast Algorithms for Spherical Harmonic Expansions
An algorithm is introduced for the rapid evaluation at appropriately chosen nodes on the two-dimensional sphere S2 in R3 of functions specified by their spherical harmonic expansions (known as the inverse spherical harmonic transform), and for the evaluation of the coefficients in spherical harmonic expansions of functions specified by their values at appropriately chosen points on S2 (known as...
متن کاملDirect Spherical Harmonic Transform of a Triangulated Mesh
Spherical harmonic transform plays an important role in research in shape description. Current computation methods involve expensive voxelization, and are prone to numerical errors associated with the size of the voxels. This paper describes a fast and accurate technique for computing spherical harmonic coe cients directly from the description of the mesh.
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2011